<!DOCTYPE html>
<html>
	<head>
		<meta charset="UTF-8">
		<title>九九乘法表</title>
		<script>
			for(var i=1;i<10;i++){
				for(var j=1;j<=i;j++){
					var result=i*j;
					document.write("<span>"+j+"*"+i+"="+result+"</span>");
				}
				document.write("<br />");   
			}
		</script>
		<!--设置span元素的样式-->
		<style type="text/css">
			span{
				display: inline-block;
				width: 80px;
			}
		</style>
	</head>
	<body>
	</body>
</html>
